import request from '../index'

// 留言板
export function getUserMessage() {
    return new Promise((resolve, reject) => {
        const url = '/userMessage'
        request.get({url}).then(res => {
            return resolve(res)
        })
        .catch(err => {
            reject(err)
        })
    })
}

// 日程表
export function timerLine() {
    return new Promise((resolve, reject) => {
        const url = '/timeLine'
        request.get({url}).then(res => {
            return resolve(res)
        })
        .catch(err => {
            reject(err)
        })
    })
}